package com.pn.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class Product implements Serializable{
    private Integer productId;

    private Integer storeId;

    private Integer brandId;

    private String productName;

    private String productNum;

    private Integer productInvent;

    private Integer typeId;

    private Integer supplyId;

    private Integer placeId;

    private Integer unitId;

    private String upDownState;

    private BigDecimal inPrice;

    private BigDecimal salePrice;

    private BigDecimal memPrice;

    private Date createTime;

    private Date updateTime;

    private Integer createBy;

    private Integer updateBy;

    private String imgs;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date productDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date suppDate;

    private String introduce;

//    ---------追加属性-----------
    private String brandName;//品牌名称
    private String supplyName;//供应商名称
    private String placeName;//产地名称
    private String typeName;//分类名称
    private Integer isOverDate;//是否过期 1过期 0未过期
    private String storeName;//仓库名称
    private String unitName;//单位
}